Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 1 - Appearance Manager Reference / Appearance Manager Functions
Drawing Appearance-Compliant Controls /


DrawThemeFocusRegion

NEW WITH THE APPEARANCE MANAGER

Draws or erases an Appearance-compliant focus ring around a specified region.

pascal OSStatus DrawThemeFocusRegion (
                     RgnHandle inRegion,
                     Boolean inHasFocus);
inRegion
On input, a handle to a region.
inHasFocus
A Boolean value. If true, the focus region should be drawn. If false, the focus region should be erased.
function result
A result code; see "Result Codes".
DISCUSSION
The DrawThemeFocusRegion function draws or erases a region to receive keyboard focus.

SPECIAL CONSIDERATIONS
Make sure Appearance Manager 1.0.1 is present before calling the DrawThemeFocusRegion function. See "Appearance Manager Gestalt Selector Constants" for details on how to determine if the Appearance Manager is present and what its version is, if so.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998